import { request } from '../Request/request.js';

//腾讯天气接口
export const getQQWeather = (params)=>{
	let url = 'https://wis.qq.com/weather/common?source=xw&weather_type=observe|forecast_1h|forecast_24h|index|tips|air'
	if(params){
		url += '&province=' + params.province + 
		'&city=' + params.city + 
		'&county=' + params.county
	}else{
		url += '&province=湖北&city=武汉&county=洪山区'
	}
	return request({
		url:url,
		method:'post',
		data:{
			// 'source':'xw',
			// 'weather_type':'observe|forecast_1h|forecast_24h|index|tips|air',
			// 'province':params.province || '湖北',
			// 'city':params.city || '武汉',
			// county:  params.county || '洪山区'
		},
	})
}

//极速数据星座运势接口
export const getConstellation = (params)=>{
	let url = 'https://api.jisuapi.com/astro/fortune'
	return request({
		url:url,
		method:'get',
		data:{
			'astroid':params.astroid,
			'date':params.date,
			'appkey':''
		},
	})
}